package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 中台监控-告警周期配置表-实体
 * @author zfsn
 * @date 2023-4-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "中台监控-告警周期配置表", description = "")
@TableName("conf_mp_alarm_period")
public class ConfMpAlarmPeriod extends Model<ConfMpAlarmPeriod> {

	/**
	 * 主键，唯一标识数据
	 */
	@ApiModelProperty(value = "主键", notes = "主键，唯一标识数据")
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 所属告警id
	 */
	@ApiModelProperty(value = "所属告警id", notes = "所属告警id")
	private Integer alarmId;

	/**
	 * 告警开始时间
	 */
	@ApiModelProperty(value = "告警开始时间", notes = "告警开始时间")
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "HH:mm")
	private LocalTime alarmStartTime;

	/**
	 * 告警结束时间
	 */
	@ApiModelProperty(value = "告警结束时间", notes = "告警结束时间")
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "HH:mm")
	private LocalTime alarmEndTime;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注", notes = "备注")
	private String remarks;

}